<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>for-in循环</title>
	</head>
	<body>
		<script>
			var strs = [1,2,3];
			for(var x in strs){
				document.write(strs[x]+"<br />");
			}
		</script>
	</body>
</html>
